package com.example.myapplication.database.room.pojo;


import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class Users {

    /**
     * 主键
     */

    @PrimaryKey(autoGenerate = true)
    private int uid;

    /**
     * 姓名
     */
    @ColumnInfo(name = "user_name")
    private String userName;

    /**
     * 年龄
     */
    @ColumnInfo(name = "user_age")
    private int userAge;

    /**
     * 身高
     */
    @ColumnInfo(name = "user_height")
    private int userHeight;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public int getUserHeight() {
        return userHeight;
    }

    public void setUserHeight(int userHeight) {
        this.userHeight = userHeight;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", userName='" + userName + '\'' +
                ", userAge=" + userAge +
                ", userHeight=" + userHeight +
                '}';
    }
}
